<?php

namespace app\api\model;
//use think\Model\BaseModel;
use think\Model;
class Role extends Model {

    public function access()
    {
        return $this->belongsToMany(Access::class, RoleAccess::class);
    }

}